package com.yangle.shell.enums;

import lombok.Getter;

/**
 * Author: yangle
 * Create Data: 2020/12/5
 */
@Getter
public enum ExceptionTypeEnum {
    PRODUCT_NOT_EXIST(1,"商品不存在"),
    PRODUCT_STOCK_OUT(1,"库存不足")
    ;

    private Integer code;
    private String message;

    ExceptionTypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
